/**
 * Created by Administrator on 2016/6/1.
 */
public class Man {
    public Integer benJin=2000; //本金多少钱
    public Integer xiaZhu=50; //叠加的下注钱
    public Integer Max;//赢最大的一局多少钱
    public Integer juShu=0;//玩了几局
    public Integer xiaZhuQian;//当局的下注钱
    public Integer shouTouQian;//手头上的钱

    public Integer getBenJin() {
        return benJin;
    }

    public void setBenJin(Integer benJin) {
        this.benJin = benJin;
    }

    public Integer getXiaZhu() {
        return xiaZhu;
    }

    public void setXiaZhu(Integer xiaZhu) {
        this.xiaZhu = xiaZhu;
    }

    public Integer getMax() {
        return Max;
    }

    public void setMax(Integer max) {
        Max = max;
    }

    public Integer getJuShu() {
        return juShu;
    }

    public void setJuShu(Integer juShu) {
        this.juShu = juShu;
    }

    public Integer getXiaZhuQian() {
        return xiaZhuQian;
    }

    public void setXiaZhuQian(Integer xiaZhuQian) {
        this.xiaZhuQian = xiaZhuQian;
    }

    public Integer getShouTouQian() {
        return shouTouQian;
    }

    public void setShouTouQian(Integer shouTouQian) {
        this.shouTouQian = shouTouQian;
    }


    public static void main(String[] args) {
        java.util.Random random = new java.util.Random();// 定义随机类
        Integer s1,s2,s3;
        Integer count=0;
        for ( int i=0; i<10000; i++) {
            //扔骰子
            s1 = random.nextInt(6) + 1;
            s2 = random.nextInt(6) + 1;
            s3 = random.nextInt(6) + 1;

            if ((s1 + s2 + s3) >= 4 && (s1 + s2 + s3) <= 10) {
                count++;
            }
        }
        System.out.println(count);
    }
}
